{@$year = substr($selected_date,0,4)}
{@$year_month = substr($selected_date,0,6)}
{@$month = substr($selected_date,4,2)}
{@$week = $Model->getWeek($selected_date)}
{@$eom = date('t', mktime(0,0,0,$month,1,$year))}

<!--//검색상자-->
<form action="./" method="get" class="adminSearch">
<input type="hidden" name="mid" value="" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="type" value="{$type}" />
<input type="hidden" name="selected_date" value="{$selected_date}" />

    <fieldset>
        <select name="selected_group_srl">
            <option value="0">{$lang->group}</option>
            <!--@foreach($group_list as $key => $val)-->
            <option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option>
            <!--@end-->
        </select>
        <select name="search_target">
		<option value="" <!--@if(!$search_target)-->selected="selected"<!--@end-->>{$lang->search_target}</option>
		<option value="user_id" <!--@if($search_target=='user_id')-->selected="selected"<!--@end-->>{$lang->user_id}</option>
        <option value="email_address" <!--@if($search_target=='user_id')-->selected="selected"<!--@end-->>{$lang->email}</option>
		<!--option value="user_name" <!--@if($search_target=='user_name')-->selected="selected"<!--@end-->>{$lang->user_name}</option-->
		<option value="nick_name" <!--@if($search_target=='nick_name')-->selected="selected"<!--@end-->>{$lang->nick_name}</option>
        </select>
        <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
        <span class="button"><input type="submit" value="{$lang->cmd_search}" /></span>
        <a href="#" onclick="location.href='{getUrl('','type',$type,'act',$act,'module',$module)}';return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
    </fieldset>
</form>

<!--@if($search_keyword || $selected_group_srl!=0)-->
<!--@foreach($user_data->data as $val2)-->
<div id="attendance_list">
<table cellspacing="0" class="rowTable" >
	<tr>
		<th class="center">
			{$lang->email}
		</th>
		<th class="center">
			{$lang->nick_name}
		</th>
		<!--th class="center">
			{$lang->user_name}
		</th-->
		<th class="center">
			{$lang->admin_graph}
		</th>
		<th class="center">
			{$lang->getpoint}
		</th>
	</tr>
<tr>
	<td class="center" width="12%"> 
		{@$user_info = $oMemberModel->getMemberInfoByMemberSrl($val2->member_srl)}
        {$user_info->email_address}
	</td>
	<td class="center" width="12%"> 
		<div class="member_{$user_info->member_srl}">{$user_info->nick_name}</div>
	</td>
	<!--td class="center" width="12%"> 
		{$user_info->user_name}
	</td-->
	<td width="49%" style="min-width:200px;">
		{@$total_info = $Model->getTotalData($user_info->member_srl)}
		<div class="admin_graph">
			{@$percent=(int)($total_info->total/$total_info->total * 100)}
            <div class="progress" style="width:{$percent}%">
                &nbsp;
                <!--@if($percent>=50)-->{$lang->view_total_day}<!--@end-->
            </div>
				<div class="num" style="left:{$percent}%;width:{100-$percent}%;">
				<strong>{$total_info->total}</strong>/{$total_info->total} {$lang->days}
                </div>
       		</div>
	</td>
	<td class="center">
		{$total_info->total_point}({$lang->view_total_point})
	</td>
</tr>
<tr>
	<td class="center" colspan="2">
			{$lang->yearly_info}({$year})
	</td>
	<td style="min-width:200px;">
		<div class="admin_graph_data">
			{@$pad = date('t', mktime(0,0,0,02,1,$year))}
			<!--@if($pad == 29)-->
				{@$yearly = 366}
			<!--@else-->
				{@$yearly = 365}
			<!--@end-->
			{@$yearly_info = $Model->getYearlyData($year,$user_info->member_srl)}
			<div class="admin_graph">
				{@$percent=(int)($yearly_info/$yearly * 100)}
                <div class="progress" style="width:{$percent}%">
                    <!--@if($percent>=50)--><!--@if($percent == 100)-->{$lang->attendance_perfect}<!--@else-->{$percent}%<!--@end--><!--@else-->&nbsp;<!--@end-->
                </div>
					<div class="num" style="left:{$percent}%;width:{100-$percent}%;">
					<strong>{$yearly_info}</strong>/{$yearly}<!--@if($percent<50)-->({$percent}%)<!--@end-->
					</div>
        		</div>
		</div>
	</td>
	<td class="center">
		{$Model->getTotalPoint($user_info->member_srl)}
	</td>
</tr>
<tr>
	<td class="center" colspan="2">
			{$lang->monthly_info}({$year.'-'.$month})
	</td>
	<td style="min-width:200px;">
		{@$monthly_information = $Model->getMonthlyAttendance($user_info->member_srl, $year_month)}
		<div class="admin_graph">
			{@$percent=(int)($monthly_information->monthly/$eom * 100)}
                <div class="progress" style="width:{$percent}%">
                    <!--@if($percent>=50)--><!--@if($percent == 100)-->{$lang->attendance_perfect}<!--@else-->{$percent}%<!--@end--><!--@else-->&nbsp;<!--@end-->
                </div>
				<div class="num" style="left:{$percent}%;width:{100-$percent}%;">
				<strong>{$monthly_information->monthly}</strong>/{$eom}<!--@if($percent<50)-->({$percent}%)<!--@end-->
				</div>
        	</div>
	</td>
	<td class="center">
		{$monthly_information->monthly_point}
	</td>
</tr>
<tr>
	<td class="center" colspan="2">
			{$lang->weekly_info}({substr($week->monday,0,4).'-'.substr($week->monday,4,2).'-'.substr($week->monday,6,2)} ~ {substr($week->sunday,0,4).'-'.substr($week->sunday,4,2).'-'.substr($week->sunday,6,2)})
	</td>
	<td style="min-width:200px;">
		{@$weekly_information = $Model->getWeeklyData($user_info->member_srl, $week)}
		<div class="admin_graph">
			{@$percent=(int)($weekly_information->weekly/7 * 100)}
                <div class="progress" style="width:{$percent}%">
                    <!--@if($percent>=50)--><!--@if($percent == 100)-->{$lang->attendance_perfect}<!--@else-->{$percent}%<!--@end--><!--@else-->&nbsp;<!--@end-->
                </div>
				<div class="num" style="left:{$percent}%;width:{100-$percent}%;">
				<strong>{$weekly_information->weekly}</strong>/7<!--@if($percent<50)-->({$percent}%)<!--@end-->
				</div>
        	</div>
	</td>
	<td class="center">
		{$weekly_information->weekly_point}
	</td>
</tr>
<tr>
	<td class="center" colspan="2">
		{$lang->attend_attended_time} : {substr($total_info->regdate,0,4).'-'.substr($total_info->regdate,4,2).'-'.substr($total_info->regdate,6,2)} {substr($total_info->regdate,8,2)}:{substr($total_info->regdate,10,2)}
	</td>
	<td class="center">
		{$lang->attendance_continuity_day} : {$total_info->continuity}
	</td>
	<td class="center">
		{$lang->attendance_continuity_point} : {$total_info->continuity_point}
	</td>
</tr>
</table>
</div>
<!--@end-->

<!--//페이지 네비게이션-->
<div class="pagination a1">
   <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $user_data->page_navigation->getNextPage())-->
        <!--@if($user_data->page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$user_data->page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>
<!--@else-->
<table cellspacing="0" class="rowTable" >
		<td class="center" height="100px">
			{$lang->messages}
		</td>
</table>
<!--@end-->

